import request from '@/utils/request'

// 查询授信申请列表
export function listCredit_apply(query) {
  return request({
    url: '/bizsys/credit_apply/list',
    method: 'get',
    params: query
  })
}

// 查询授信申请详细
export function getCredit_apply(id) {
  return request({
    url: '/bizsys/credit_apply/' + id,
    method: 'get'
  })
}

// 新增授信申请
export function addCredit_apply(data) {
  return request({
    url: '/bizsys/credit_apply',
    method: 'post',
    data: data
  })
}

// 修改授信申请
export function updateCredit_apply(data) {
  return request({
    url: '/bizsys/credit_apply',
    method: 'put',
    data: data
  })
}

// 删除授信申请
export function delCredit_apply(id) {
  return request({
    url: '/bizsys/credit_apply/' + id,
    method: 'delete'
  })
}

// 导出授信申请
export function exportCredit_apply(query) {
  return request({
    url: '/bizsys/credit_apply/export',
    method: 'get',
    params: query
  })
}

// 手动批量授信
export function manual_credit(id) {
  return request({
    url: '/manual/credit/' + id,
    method: 'post'
  })
}
